import 'package:fate_blind_box/network/http_request.dart';
import 'package:fate_blind_box/ui/Home/activity/sign_up/sign_up_list_model.dart';
import 'package:get/get.dart';

class ActSignItemController extends GetxController{
String signListViewId ='';
List<SignUpListDataModel>dataList=[];



  getListData(String actId) async{
    if(dataList.isNotEmpty){
      dataList.clear();
    }
    var res =await HttpRequest.request('member/activity/enrollList',params: {'activityId':actId});
    if(res is Map){
      Map resMap =res;
      SignUpListModel resModel = SignUpListModel.fromJson(resMap);
      dataList.addAll(resModel.data??[]);
      update([signListViewId]);
    }
  }
}